package model.randomizer 
{
	import flash.display.Shape;
	import model.Shapes.ShapeS;
	
	import model.Shapes.TetrisShape;
	import model.Shapes.ShapeT;
	import model.Shapes.ShapeL;
	import model.Shapes.ShapeJ;
	import model.Shapes.ShapeI;
	import model.Shapes.ShapeZ;
	import model.Shapes.ShapeO;

	/**
	 * ...
	 * @author Yang Wang
	 */
	public class MockRandomizer implements ShapeRandomizer
	{

		private var m_nextIndex:uint;
		private var m_bag:Vector.<TetrisShape>;
		
		public function MockRandomizer() 
		{
			createBag();
		}
		
		private function createBag() : void {
			m_bag = new Vector.<TetrisShape>();
			m_bag.push(new ShapeI());
			/*
			m_bag.push(new ShapeT());
			m_bag.push(new ShapeL());
			m_bag.push(new ShapeJ());
			m_bag.push(new ShapeZ());
			m_bag.push(new ShapeS());
			m_bag.push(new ShapeI());
			m_bag.push(new ShapeO());
			*/
		}
		
		public function nextShape() : TetrisShape
		{
			if (m_bag.length == 0)
				createBag();
				
			return m_bag.pop();
		}
	}

}